if(TARGET_LIKE_LINUX)
include("../includes.txt")


add_executable(m2mreporthandler
        "main.cpp"
        "m2mreporthandlertest.cpp"
        "test_m2mreporthandler.cpp"
        "../stub/m2mtimer_stub.cpp"
        "../stub/m2mstring_stub.cpp"
        "../stub/mbed_trace_stub.cpp"
        "../../../../source/m2mreporthandler.cpp"

)
target_link_libraries(m2mreporthandler
    CppUTest
    CppUTestExt
)

set_target_properties(m2mreporthandler
PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS}"
           LINK_FLAGS "${UTEST_LINK_FLAGS}")
set(binary "m2mreporthandler")
add_test(m2mreporthandler ${binary})

endif()
